package com.cat.factory;

import com.cat.dao.UserDao;
import com.cat.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author cat
 * @version 2025/5/23 14:44
 * @description
 * @since JDK17
 */

public class MyFactoryBean03 implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new UserDaoImpl();
    }

    // 返回Bean的类型
    @Override
    public Class<?> getObjectType() {
        return UserDao.class;
    }
}
